<?php
if (! defined ( 'BASEPATH' ))
	exit ( 'No direct script access allowed' );
include 'php-ofc-library/open-flash-chart.php';
class Guestmoneychart {
	function create_chart() {
		$title = new title ( date ( "预测亲友团随礼金对比列表" ) );
		$bar = new bar_3d ( );
		$bar->set_values ( array (10, 40, 30, 20) );
		$bar->set_alpha(0.5);
		$bar->set_colour("#9933CC");

		
		$chart = new open_flash_chart ( );

		$chart->set_title ( $title );
		$chart->add_element ( $bar );
		$chart->set_x_axis();
		return $chart->toString ();
	}
}